# -*- coding: utf-8 -*-
"""
Created on Mon Apr 20 16:30:04 2015

@author: hc
"""

"方法一，使用[::-1]："

s = 'python'
print s[::-1]


"方法二，使用reverse()方法："

l = list(s)
l.reverse()
print ''.join(l)